package com.byt.common.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 患者
 */
public class PatientBean implements Parcelable {

    /**
     * member_id : 1
     * nick_name : i奥黑
     * mobile : 13717065140
     * photo_src : ssdd.jpg
     * stage : 2
     * due_date : 1513272319
     * member_status : 孕2周5天
     * province : 广东省
     * city : 深圳市
     * county : 龙华新区
     * group_name : 孕晚期
     * member_remark : 患者备注
     * member_total : 20
     */

    private long member_id;
    private String nick_name;
    private String mobile;
    private String photo_src;
    private int stage;
    private long due_date;
    private String member_status;
    private int activate_state;//激活状态, 1：未激活 2：首次激活 3：已激活
    private String province;
    private String city;
    private String county;
    private String group_name;
    private String member_remark;
    private int member_total;

    protected PatientBean(Parcel in) {
        member_id = in.readLong();
        nick_name = in.readString();
        mobile = in.readString();
        photo_src = in.readString();
        stage = in.readInt();
        due_date = in.readLong();
        member_status = in.readString();
        activate_state = in.readInt();
        province = in.readString();
        city = in.readString();
        county = in.readString();
        group_name = in.readString();
        member_remark = in.readString();
        member_total = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(member_id);
        dest.writeString(nick_name);
        dest.writeString(mobile);
        dest.writeString(photo_src);
        dest.writeInt(stage);
        dest.writeLong(due_date);
        dest.writeString(member_status);
        dest.writeInt(activate_state);
        dest.writeString(province);
        dest.writeString(city);
        dest.writeString(county);
        dest.writeString(group_name);
        dest.writeString(member_remark);
        dest.writeInt(member_total);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PatientBean> CREATOR = new Creator<PatientBean>() {
        @Override
        public PatientBean createFromParcel(Parcel in) {
            return new PatientBean(in);
        }

        @Override
        public PatientBean[] newArray(int size) {
            return new PatientBean[size];
        }
    };

    public long getMember_id() {
        return member_id;
    }

    public void setMember_id(long member_id) {
        this.member_id = member_id;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPhoto_src() {
        return photo_src;
    }

    public void setPhoto_src(String photo_src) {
        this.photo_src = photo_src;
    }

    public int getStage() {
        return stage;
    }

    public void setStage(int stage) {
        this.stage = stage;
    }

    public long getDue_date() {
        return due_date;
    }

    public void setDue_date(long due_date) {
        this.due_date = due_date;
    }

    public String getMember_status() {
        return member_status;
    }

    public void setMember_status(String member_status) {
        this.member_status = member_status;
    }

    public int getActivate_state() {
        return activate_state;
    }

    public void setActivate_state(int activate_state) {
        this.activate_state = activate_state;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }

    public String getMember_remark() {
        return member_remark;
    }

    public void setMember_remark(String member_remark) {
        this.member_remark = member_remark;
    }

    public int getMember_total() {
        return member_total;
    }

    public void setMember_total(int member_total) {
        this.member_total = member_total;
    }
}